package disanzhou;

import java.util.Scanner;

public class text1 {
    public static void main(String[] args) {
        int array[]=new int [5];
        Scanner text= new Scanner(System.in);
        int tmp=0;
        //输入
        for(int i=0;i<array.length;i++)
        {
            System.out.println("请输入第"+(i+1)+"个元素的值");
            tmp= text.nextInt();
            array[i]=tmp;
        }
        //输出
        System.out.println("array数组:");
        for (int i=0;i< array.length;i++)
        {
            System.out.println(array[i]+"");
        }
    }
}